/** API相关配置 */
import type { typeApi } from './api.d'
import { electronAPI } from '@electron-toolkit/preload'

const api: typeApi = {
    HelloWorld: (value: string) => {
        electronAPI.ipcRenderer.send('message-to-server', {
            module: 'user',
            action: 'read',
            data: {
                helloWorld: value
            }
        })
    }
}

export default api
